Fungus-based bioremediation of textile or livestock waste